package controller.statistic;

import java.util.Observable;
import java.util.Observer;

import lib.MyUtils;
import view.statistic.StatisticPanelDay;
import controller.invoice.InvoiceControl;

public class StatisticControl implements Observer {
	private StatisticPanelDay statistic;

	public StatisticControl(StatisticPanelDay statistic) {
		this.statistic = statistic;
	}

	@Override
	public void update(Observable o, Object arg) {
		if(o instanceof InvoiceControl){
			MyUtils.loadStatistic(statistic);
		}
		
	}



}
